package net.lzzy.practices.web.models;


import lombok.Getter;

/**
 * @author liaodcc on 2022/5/12 8:55.
 */
@Getter
public class ApiResult {
    private final boolean success;
    private final String message;
    private final Object data;

    public ApiResult(boolean success, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }

    @Override
    public String toString() {
        return "ApiResult{" +
                "success=" + success +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
